﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;

namespace DawnOfConquest
{
    class Swordsman : DawnOfConquest.Unit
    {
        public Swordsman(string faction, ContentManager content)
        {
            //sprite = content.Load<Texture2D>("UnitSprites/Swordsman");
            this.faction = faction;
            strength = 5;
            dex = 5;
            stamina = 5;
            intel = 5;
            will = 5;
            actionPoints = 5;
            health = stamina * 5;
        }

        public override int getDefense()
        {
            return dex;
        }

        public override int getAttack()
        {
            return dex;
        }

        public override int getDamage()
        {
            return dex * 0.5 + strength;
        }

        public override void levelUp()
        {
            // 100 Xp for level 2, 70 XP after
            // level cap 15
        }
    }
}
